package com.vcolco.vo;

import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * 测试实体类
 */
@Data
public class UserInfo implements Serializable {

    @NotBlank(message = "用户姓名不能为空")
    private String userName;
    @Min(value = 0,message = "最小值不能小于0")
    @Max(value = 99,message = "最大值不能大于99")
    private int userAge;
    @Pattern(regexp = "^['男'|'女']$")
    private String userSex;
    @Size(min = 0,max = 100,message = "爱好最长字符不可超过100")
    private String hobby;

}
